import {createRouter,createWebHashHistory,RouteRecordRaw} from 'vue-router'

const routes:RouteRecordRaw[] = [
  {
  path:'/',
  name:'Home',
  component:()=>import('../views/Home/index.vue')
  },
  {
    path:'/video/:id',
    name:'Video',
    component:()=>import('../views/Video/index.vue')
  }
]

const router = createRouter({
  history:createWebHashHistory(),
  routes
})

export default router